Give\Donations\Repositories\DonationRepository A

Total Complexity 53
Dependencies 15
Dependents 3
Total lines 548
Lines of code 301
Logical lines of code 123
Comment lines 136
Methods 23
Properties 2

Methods 23

Method Rating Maintainability Complexity Lines of code
getCoreDonationMetaForDatabase()
A
41 9 57
validateDonation()
A
57 9 16
insert()
A
44 6 46
update()
S
50 3 28
delete()
S
56 2 19
getPersistedDonationStatus()
S
71 3 6
prepareQuery()
S
58 1 17
getFormTitle()
S
66 2 9
getSequentialId()
S
68 2 7
getDefaultDonationMode()
S
75 2 4
deriveLegacyDonationParentId()
S
78 2 3
queryBySubscriptionId()
S
60 1 14
getTotalDonationCountByDonorId()
S
63 1 12
queryByDonorId()
S
62 1 12
queryByGatewayTransactionId()
S
64 1 11
getAllDonationIdsByDonorId()
S
65 1 10
getFirstDonation()
S
72 1 6
__construct()
S
80 1 3
getById()
S
74 1 5
getBySubscriptionId()
S
80 1 3
queryById()
S
76 1 4
getByGatewayTransactionId()
S
80 1 3
getLatestDonation()
S
72 1 6